package com.suda.sudaexamsystem.mapper;

import com.suda.sudaexamsystem.pojo.Record;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RecordMapper {
    // 添加练习记录
    void addRecord(Record record);

    // 查询单次记录
    Record findById(int recordId);

    // 查询用户的所有记录
    List<Record> findRecordsByUserId(int userId);
}
